public class Dog extends Animal {
    private String name;

    public Dog(String name) {
        this.name = name;
    }

    public void shout() {
        System.out.println("汪汪汪~~~");
    }

    @Override
    public void eat(Food food) {
        System.out.println(name + "正在啃着香喷喷的" + food.getName());

    }

    public String getName() {
        return name;
    }
}
